STEP 5: Let's set the y-position for each legs sprite so the robots are standing on the moon!

We are using a variable for our x-coordinate because we need it to vary (change) each time the loop runs.

  • Change the y-coordinate of the legs sprite from 0 to -150.
  • Let's update our display to see legs_x change! From , drag Update Display inside the loop.
  • Change the variable argument in the parentheses of .update() from my_var to legs_x.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)